-
Notifications
You must be signed in to change notification settings - Fork 22.7k
chore: Change ints to 'number' for ProgressEvent properties #39574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
CC @domenic |
Preview URLs
(comment last updated: 2025-05-30 10:26:33) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would need BCD too I reckon, +1 for content, but not sure if it fixes the issue completely.
Also as a reader I would be curious to know what a fraction of a byte even means.
Yeah that's a good point, motivation is:
https://webmachinelearning.github.io/writing-assistance-apis/#note-download-progress-fraction |
Description
The docs are explicit about ints here, and changes have landed allowing doubles:
https://xhr.spec.whatwg.org/#dom-progresseventinit-loaded
Related issues and pull requests
Fixes mdn/mdn#641